package com.haifeng.myapplication;

import androidx.appcompat.app.AppCompatActivity;
import androidx.startup.AppInitializer;

import android.os.Bundle;
//在app的启动过程中，减少application中部分方法的实例化，可添加AndroidStartup 并在provider的oncreate中对方法进行实例化，该实例化调用在application中的oncrate之前

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        AppInitializer.getInstance(getApplicationContext())
                .initializeComponent(SDK3Initalizer.class);

        SDKClient1.getInstance().printApplication();
    }
}